package com.ruoyi.project.app.service.impl;

import java.util.List;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.app.mapper.AppLvDriverLocationMapper;
import com.ruoyi.project.app.domain.AppLvDriverLocation;
import com.ruoyi.project.app.service.IAppLvDriverLocationService;

/**
 * 司机坐标记录Service业务层处理
 * 
 * @author hry
 * @date 2020-10-15
 */
@Service
public class AppLvDriverLocationServiceImpl extends ServiceImpl<AppLvDriverLocationMapper, AppLvDriverLocation> implements IAppLvDriverLocationService
{
    @Autowired
    private AppLvDriverLocationMapper appLvDriverLocationMapper;

    /**
     * 查询司机坐标记录
     * 
     * @param id 司机坐标记录ID
     * @return 司机坐标记录
     */
    @Override
    public AppLvDriverLocation selectAppLvDriverLocationById(Long id)
    {
        return appLvDriverLocationMapper.selectAppLvDriverLocationById(id);
    }

    /**
     * 查询司机坐标记录列表
     * 
     * @param appLvDriverLocation 司机坐标记录
     * @return 司机坐标记录
     */
    @Override
    public List<AppLvDriverLocation> selectAppLvDriverLocationList(AppLvDriverLocation appLvDriverLocation)
    {
        return appLvDriverLocationMapper.selectAppLvDriverLocationList(appLvDriverLocation);
    }

    /**
     * 新增司机坐标记录
     * 
     * @param appLvDriverLocation 司机坐标记录
     * @return 结果
     */
    @Override
    public int insertAppLvDriverLocation(AppLvDriverLocation appLvDriverLocation)
    {
        return appLvDriverLocationMapper.insertAppLvDriverLocation(appLvDriverLocation);
    }

    /**
     * 修改司机坐标记录
     * 
     * @param appLvDriverLocation 司机坐标记录
     * @return 结果
     */
    @Override
    public int updateAppLvDriverLocation(AppLvDriverLocation appLvDriverLocation)
    {
        return appLvDriverLocationMapper.updateAppLvDriverLocation(appLvDriverLocation);
    }

    /**
     * 批量删除司机坐标记录
     * 
     * @param ids 需要删除的司机坐标记录ID
     * @return 结果
     */
    @Override
    public int deleteAppLvDriverLocationByIds(Long[] ids)
    {
        return appLvDriverLocationMapper.deleteAppLvDriverLocationByIds(ids);
    }

    /**
     * 删除司机坐标记录信息
     * 
     * @param id 司机坐标记录ID
     * @return 结果
     */
    @Override
    public int deleteAppLvDriverLocationById(Long id)
    {
        return appLvDriverLocationMapper.deleteAppLvDriverLocationById(id);
    }
}
